using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using ZR.Model.Dto;
using ZR.Model.Models;

namespace ZR.Model.Dto
{
    /// <summary>
    /// 资源管理输入对象
    /// </summary>
    public class ResourceDto
    {
        [Required(ErrorMessage = "编号不能为空")]
        public int Id { get; set; }
        public string Name { get; set; }
        public string Description { get; set; }
        public string FileType { get; set; }
        public string Path { get; set; }
        public string PathAndroid { get; set; }
        public string PathIOS { get; set; }
        public string PathPC { get; set; }
        [Required(ErrorMessage = "版本号不能为空")]
        public int Version { get; set; }
    }

    /// <summary>
    /// 资源管理查询对象
    /// </summary>
    public class ResourceQueryDto : PagerInfo 
    {
        public int? Id { get; set; }
        public string Name { get; set; }
        public string Path { get; set; }
        public int? Version { get; set; }
    }
}
